include("Framework/kontx/1.0.0/src/all.js");

include("Javascript/views/MainView.js");
include("Javascript/views/CustomView.js");
include("Javascript/views/AnotherCustomView.js");
include("Javascript/views/AboutView.js");
include("Javascript/views/SnippetView.js");
include("Javascript/views/teamView.js");
include("Javascript/views/oppView.js");
include("Javascript/views/LeagueView.js");
include("Javascript/views/player.js");

var host = "cguan.selfip.com";

KONtx.application.init({
	views: [
		{ id: 'view-Main', viewClass: MainView },
		{ id: 'view-Custom', viewClass: CustomView },
		{ id: 'team-View', viewClass: teamView },
		{ id: 'league-View', viewClass: LeagueView },
		{ id: 'oppView-View', viewClass: oppView },
    { id: 'view-Player', viewClass: SamplePlayerView },
		{ id: 'view-AnotherCustomEdit', viewClass: AnotherCustomView, data: { mode: "edit" } },  // sample of having a view config data toggle
		{ id: 'view-AnotherCustomInsert', viewClass: AnotherCustomView, data: { mode: "insert" } },  // sample of having a view config data toggle
		{ id: 'view-About', viewClass: AboutView },
		{ id: 'snippet-record', viewClass: SnippetView, data: { mode: "record"} }, // sample of storing something for the snippet to use
		{ id: 'snippet-rank', viewClass: SnippetView, data: { mode: "rank" } }, // sample of storing something for the snippet to use
	],
	defaultViewId: 'view-Main',
	settingsViewId: 'view-About',
});
